#pragma once

#include "master.h"

#include "entity.h"

//--------------------------------------------------------------------------------------------------

class Level
{
public:
	Level();

	void load();
	void save();
	void update(float timeDelta);
	void draw();
	void destroy();

	void addEntity(Entity* entity);
	Entity* getEntityUnderCursor(int x, int y, ofCamera* camera);
	list<Entity*> Level::getEntitiesUnderCursorRect(int x1, int y1, int x2, int y2, ofCamera* camera);

	Entity* getEntity(string name);
	void deleteEntity(Entity* entity);
private:
	list<Entity*> gameObjects;
};

//--------------------------------------------------------------------------------------------------